<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
        <link rel="stylesheet" href="css/animate.css">
    </head>
    <body>
        <div id="app">
            <button @click="show=!show">显示/隐藏</button>
            <transition appear appear-active-class="animated swing" enter-active-class="animated flip" leave-active-class="animated fadeOutDown" >
                <div v-if="show">过渡文字效果</div>
            </transition>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data : {
                    show : true
                }
            });
        </script>
    </body>
</html>